home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / PET / S-Super PET / (s)t5.d64 / EDA.LINE.INF < prev    next >
Text File  |  2009-01-18  |  2KB  |  36 lines

  1.                PPPP function line PPPP
  2.                     @@@@@@@@@@@@@
  3.  introduction           this function fits a straight line to a set of data
  4.  @@@@@@@@@@@@           points according to the relation >_
  5.                           y % y_intercept - slope = x.
  6.                         it returns values for the slope, y_intercept, and
  7.                         if requested, the residuals.
  8.  
  9.                        the function accepts either a numeric vector or a
  10.                        two column array as its argument. if the argument is
  11.                        a vector of size n, the carrier is the first n
  12.                        positive integers.
  13.  
  14.                        the parameter KresidsK :default%0" may be set
  15.                        to 1 to pruduce residuals
  16.  
  17.  command syntax         line dddd       _display the slope and y_intercept
  18.  @@@@@@@@@@@@@@                          of data in dddd
  19.  
  20.                         resids[1        _produce residuals
  21.                         z[line dddd     _fit a line to data in dddd and
  22.                                          store the residuals in variable z
  23.  
  24.  
  25.                      PPPP practice PPPP
  26.  
  27.  this workspace contains the data set called insects :p 12, mcneil".
  28.  
  29.    try the following commands >_
  30.  
  31.      insects              _display data in insects
  32.      line ,insects        _calculates slope and intercept of a line
  33.                            fitted to the data and the first 72 integers
  34.      line insects;<1 2'   _gives slope and intercept of a line fitted
  35.                            to col 2 against col 1
  36.